import axios from '../utils/request';

export function GetTreeNodes(params) {
    return axios({
        method: 'get',
        url: '/Menu/GetTreeNodes',
        params
    });
}

/**
 * @description: 菜单添加
 * @param {*} data
 * @return {*}
 */
export function Add(data) {
    return axios({
        method: 'post',
        url: '/Menu/Create',
        data
    });
}

/**
 * @description: 获取当前登录用户的菜单
 * @param {*} params
 * @return {*}
 */
export function GetMenu(params) {
    return axios({
        method: 'get',
        url: '/Menu/GetMenu',
        params
    });
}